<?php

namespace addons\xapply\controller;

use addons\xapply\Base;

class Get extends Base
{

    protected $noNeedLogin = [];
    protected $noNeedRight = '*';

    /**
     * 根据短ID读取小程序应用的接口地址
     * url: http://域名/addons/xapply/get
     * doc: https://lutui.net/doc/miniprogram/request.html
     */
    public function index()
    {
        $app_name = $this->data['name']; // 应用标识
        $url = ''; // 小程序Api地址
        return json(['api' => $url]);
    }
    
}
